package com.example.demo.service.impl;

import com.example.demo.entity.usecategory;
import com.example.demo.mapper.usecategoryMapper;
import com.example.demo.service.IusecategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class usecategoryServiceImpl implements IusecategoryService{

    @Autowired
    usecategoryMapper usecategoryMapper;

    @Override
    public usecategory getUseCategory(int userId) {
        usecategory use = usecategoryMapper.getUseCategory(userId);
        return use;
    }

    @Override
    public List<usecategory> getUseCategoryMoney() {
        List<usecategory> list = usecategoryMapper.getUseCategoryMoney();
        return list;
    }
}
